﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using ZeroBug.EasyFlow.Core;

namespace EasyFlow
{
    /// <summary>
    /// ConditionSelector.xaml 的交互逻辑
    /// </summary>
    public partial class ConditionSelector : UserControl
    {
        public string CompareVariableExpression
        {
            get { return (string)GetValue(CompareVariableExpressionProperty); }
            set { SetValue(CompareVariableExpressionProperty, value); }
        }
        public static readonly DependencyProperty CompareVariableExpressionProperty =
            DependencyProperty.Register("CompareVariableExpression", typeof(string), typeof(ConditionSelector), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault));
        public string CompareValueExpression
        {
            get { return (string)GetValue(CompareValueExpressionProperty); }
            set { SetValue(CompareValueExpressionProperty, value); }
        }
        public static readonly DependencyProperty CompareValueExpressionProperty =
            DependencyProperty.Register("CompareValueExpression", typeof(string), typeof(ConditionSelector), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault));
        public CompareSign CompareSign
        {
            get { return (CompareSign)GetValue(CompareSignProperty); }
            set { SetValue(CompareSignProperty, value); }
        }
        public static readonly DependencyProperty CompareSignProperty =
            DependencyProperty.Register("CompareSign", typeof(CompareSign), typeof(ConditionSelector), new FrameworkPropertyMetadata(default(CompareSign), FrameworkPropertyMetadataOptions.BindsTwoWayByDefault));
        public int CompareIndex
        {
            get { return (int)GetValue(CompareIndexProperty); }
            set { SetValue(CompareIndexProperty, value); }
        }
        public static readonly DependencyProperty CompareIndexProperty =
            DependencyProperty.Register("CompareIndex", typeof(int), typeof(ConditionSelector), new FrameworkPropertyMetadata(0, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault));
        public ConditionSelector()
        {
            InitializeComponent();
        }
    }
}
